/**
 * Created by ren on 24/03/2017.
 */

'use strict'
import * as types from '../mutations-type'
const state = {
  moduleName: 'home'
}

const mutations = {
  [types.CUT_MODULE] (state, action) {
    state.moduleName = action.moduleName
  }
}

const actions = {
  [types.CUT_MODULE] ({commit}, moduleName) {
    commit(types.CUT_MODULE, {
      moduleName: moduleName
    })
  }
}
export default {
  state,
  mutations,
  actions
}
